//1.0导入vue核心包
import Vue from 'vue';

//2.0导入App组件
import App from './App.vue';

//3.0利用vue-router集成到项目来
import vueRouter from 'vue-router';

//3.1将VueRouter对象绑定到vue对象上
Vue.use(vueRouter);

import login from './components/account/login.vue';
import register from './components/account/register.vue';
//3.2定义路由规则
var router1 = new vueRouter({
	routes: [
		{
			path: '/login',
			component: login
		},
		{
			path: '/register',
			component: register
		}
	]
});

//4.0注册mint-ui
//导入css文件
import 'mint-ui/lib/style.min.css';

import mint from 'mint-ui';
Vue.use(mint);

/* //5.0注册miude css的样式
import '../statics/mui/css/mui.css'; */
new Vue({
	el: "#app",
	//使用路由对象实例,
	router:router1,
	render: c => c(App)
})